package com.sunnyebuy.merchant.po;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * The persistent class for the merchant_sale_product_num database table.
 */
@Entity
@Table(name = "merchant_sale_product_num")
public class MerchantSaleProductNum implements Serializable {

	private static final long serialVersionUID = -8796597115929693315L;
	private String merchantSaleProductNumId;
	private Timestamp createdTime;
	private int merchantExpendProductNum;
	private String merchantId;
	private String merchantLevelId;
	private int merchantStoreExpendProductNum;
	private Date validDate;

	public MerchantSaleProductNum() {
	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "merchant_sale_product_num_id")
	public String getMerchantSaleProductNumId() {
		return this.merchantSaleProductNumId;
	}

	public void setMerchantSaleProductNumId(String merchantSaleProductNumId) {
		this.merchantSaleProductNumId = merchantSaleProductNumId;
	}

	@Column(name = "created_time")
	public Timestamp getCreatedTime() {
		return this.createdTime;
	}

	public void setCreatedTime(Timestamp createdTime) {
		this.createdTime = createdTime;
	}

	@Column(name = "merchant_expend_product_num")
	public int getMerchantExpendProductNum() {
		return this.merchantExpendProductNum;
	}

	public void setMerchantExpendProductNum(int merchantExpendProductNum) {
		this.merchantExpendProductNum = merchantExpendProductNum;
	}

	@Column(name = "merchant_id")
	public String getMerchantId() {
		return this.merchantId;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	@Column(name = "merchant_level_id")
	public String getMerchantLevelId() {
		return this.merchantLevelId;
	}

	public void setMerchantLevelId(String merchantLevelId) {
		this.merchantLevelId = merchantLevelId;
	}

	@Column(name = "merchant_store_expend_product_num")
	public int getMerchantStoreExpendProductNum() {
		return this.merchantStoreExpendProductNum;
	}

	public void setMerchantStoreExpendProductNum(int merchantStoreExpendProductNum) {
		this.merchantStoreExpendProductNum = merchantStoreExpendProductNum;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "valid_date")
	public Date getValidDate() {
		return this.validDate;
	}

	public void setValidDate(Date validDate) {
		this.validDate = validDate;
	}

}